#从文件读取一列数据画图
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np

X, Y = [], []
i = 1
for line in open('a_sp1', 'r'):
  values = [float(s) for s in line.split()]
  X.append(i)
  Y.append(values[0])
  i = i + 1

plt.plot(X, Y)
plt.show()